import request from '@/utils/request'

// 获取一体杆列表
export const getRodListAPI = params => {
  return request({
    url: '/pole/info/list',
    params
  })
}

// 添加一体杆
export const addRodAPI = data => {
  return request({
    url: '/pole/info',
    method: 'post',
    data
  })
}

// 删除一体杆
export const delRodAPI = ids => {
  return request({
    url: `pole/info/${ids}`,
    method: 'delete'
  })
}

// 编辑一体杆
export const editRodAPI = data => {
  return request({
    url: 'pole/info',
    method: 'put',
    data
  })
}

// 获取关联区域下拉列表
export const getAreaListAPI = () => {
  return request({
    url: 'parking/area/dropList'
  })
}
